<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8"/>
	<meta name="keywords" content="line ending, newline, LF, CR, CRLF"/>
	<link rel="stylesheet" href="../../Shared/sty/standard.css"/>
	<script defer src="../../Shared/js/toc.js"></script>
	
	<title>Find inconsistent line endings in CotEditor on Mac</title>
</head>

<body>
<a name="inconsistent_line_endings"></a>

<h1>Find inconsistent line endings in CotEditor on Mac</h1>

<p>CotEditor automatically detects line endings inconsistent with the document line ending setting. Inconsistent line endings can cause problems in various ways, such as running a script.</p>


<section>
<h2>Detect line endings in the document</h2>

<p>CotEditor automatically inspects line endings in the document when loaded, then sets the common line ending type to the document line ending.</a>

<p>At the same time, if there are multiple types of line endings in the document, CotEditor alerts about it. In the dialog, you can then choose whether to convert all those inconsistent line endings to the most common line endings or leave them for now so that you can review them.</p>

<p>If you select the “Don’t ask again for this document” checkbox, the warning dialog doesn’t appear anymore for the document, even when inconsistent line endings are found when opening the document. To turn off the warning dialog for all documents entirely, go to <a href="settings_general.html">General settings</a> &gt; <a href="howto_manage_warnings.html">Manage Warnings</a>, then select the “Inconsistent line endings dialog.”</p>
</section>


<section>
<h2>Look over the location of inconsistent line endings</h2>

<ol>
	<li><p>In the CotEditor app <img class="appicon" srcset="../../Shared/gfx/icon_32x32@2x.png 2x" alt=""/> on your Mac, open a document.</p></li>
	<li><p>Choose View &gt; Inspector &gt; Warnings.</p></li>
</ol>

<p>The Warnings inspector lists all the line endings inconsistent with the document line ending.</p>
</section>


<section>
<h2>Find inconsistent line endings in the editor</h2>

<p>When the visibility setting of the line endings is selected, the inconsistent line endings are drawn in a different color. See <a href="howto_display_invisibles.html">Show invisible characters</a> for instructions on how to change the line endings’ visibility.</p>
</section>


<section>
<h2>Normalize line endings</h2>

<p>You can convert all line endings including inconsistent ones to a single line ending type by selecting the document line ending in the Line Endings menu in the Format menu or the status bar.</p>
</section>


<section id="cf">
<h2>See also</h2>
<ul>
	<li><a href="about_line_endings.html">Handle various types of line endings in CotEditor on Mac</a></li>
	<li><a href="howto_find_newline.html">Find or replace a line ending in CotEditor on Mac</a></li>
	<li><a href="howto_inspect_usedchar.html">Find characters incompatible with the document encoding in CotEditor on Mac</a></li>
</ul>
</section>

</body>
</html>
